package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.model.Shipping;
import javax.servlet.http.HttpSession;

/**
 * Create by IntelliJ IDEA
 *
 * @author: MaoYongQi
 * @date-Time: 2018/4/2 11:28
 * @description:
 */
public interface ShippingService {

  /**
   * 新建地址
   * @param shipping
   * @return
   */
  ServerResponse<Shipping> add(Shipping shipping);

  /**
   * 删除地址
   * @param shippingId
   * @return
   */
  ServerResponse<Shipping> del(String shippingId);

  /**
   * 登录状态更新地址
   * @param shipping
   * @return
   */
  ServerResponse<Shipping> update(Shipping shipping);

  /**
   * 选中查看具体的地址
   * @param shippindId
   * @param session
   * @return
   */
  ServerResponse<Shipping> select(String shippindId, HttpSession session);

  /**
   * 地址列表
   * @param pageNum
   * @param pageSize
   * @param session
   * @return
   */
  ServerResponse<Shipping> selectList(Integer pageNum, Integer pageSize, HttpSession session);

}
